<html>
<%@ page import="java.util.*" %>
<%@ page import="model.Bag" %>
<jsp:useBean id="result" scope="request" type="model.Bag" />
<jsp:useBean id="errors" class="java.util.HashMap" scope="request" />
<head>
<script type="text/javascript" src="static/js/rakarh1.js"></script>
<link rel="stylesheet" type="text/css" href="static/css/rakarh1.css" /> 
</head>
<body>
<a href='s'>servlet</a> | <a href='log.txt'>log.txt</a> <br> 
<%=result.getType() %>
<form action="?action=save" method="post">

<% if ( errors.size() > 0 && errors.get("general_error") != null) { %> <h2><%=errors.get("general_error") %></h2> <% } %>

<input type="hidden" name="id" value="<%=result.getId() %>" />
<table border="1">
<tbody>
<tr>
<td>id</td>
<td><%=result.getId() %></td>
</tr>
<tr>
<td>Type</td>
<td>
	<input type="text" name="type" value="<%=result.getType() %>" />
	<% if ( errors.size() > 0 && errors.get("type") != null) { %> <%=errors.get("type") %> <% } %>
</td>
</tr>
<tr>
<td>Price</td>
<td>
	<input type="text" name="price" value="<%=result.getStringPrice() %>" />
	<% if ( errors.size() > 0 && errors.get("price") != null) { %> <%=errors.get("price") %> <% } %>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="Save" />
<a href="/Bag/s">Cancel</a>
</td>
</tr>
</tbody>
</table>
</form>


<hr>
</body>
</html>
